import request from '@/request'
const URL = process.env.VUE_APP_API

export function getSelectOptionsList(params) {
  return request({
    url: `${URL}/manage/followupCalculationRole/optionList/${params.tempId}/${params.questionIds}`,
    method: 'get'
  })
}

export function getSelectIssueOptions(params) {
  return request({
    url: `${URL}/manage/followupCalculationRole/questionList/${
      params.tempId || ''
    }`,
    method: 'get'
  })
}

export function computeAddAndEdit(data) {
  return request({
    url: `${URL}/manage/followupCalculationRole/edit`,
    method: 'post',
    data
  })
}

export function getComputeDetail(params) {
  return request({
    url: `${URL}/manage/followupCalculationRole/detail/${params.tempId}`,
    method: 'get'
  })
}

/**
 *
 * 判定规则接口
 *
 */
// 查看判定规则
export function getJudgeRulesGroup(params) {
  return request({
    url: `${URL}/manage/followupJudgeRulesGroup/info`,
    method: 'get',
    params
  })
}

// 新增、修改判定规则
export function addJudgeRulesGroup(data) {
  return request({
    url: `${URL}/manage/followupJudgeRulesGroup/add`,
    method: 'post',
    data
  })
}

// 语音文件分类
export function getFileList(params) {
  return request({
    url: `${URL}/manage/followupClassify/list`,
    method: 'get',
    params
  })
}

// 添加问题获取列表
export function getQuestionList(params) {
  return request({
    url: `${URL}/manage/followupQuestion/selectQuestionAndOption`,
    method: 'get',
    params
  })
}
